package com.CNMedical.system.domain.entity;

import io.swagger.annotations.ApiModel;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.CNMedical.common.annotation.Excel;
import com.CNMedical.common.core.domain.BaseEntity;

/**
 * 轮播图对象 applet_rotation
 * 
 * @author tang
 * @date 2023-03-28
 */
@Data
@ApiModel(value = "AppletRotation对象", description = "小程序首页轮播图")
public class AppletRotation extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long id;

    /** 照片名称 */
    @Excel(name = "照片名称")
    private String photoName;

    /** 照片地址 */
    @Excel(name = "照片地址")
    private String photoUrl;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setPhotoName(String photoName) 
    {
        this.photoName = photoName;
    }

    public String getPhotoName() 
    {
        return photoName;
    }
    public void setPhotoUrl(String photoUrl) 
    {
        this.photoUrl = photoUrl;
    }


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("photoName", getPhotoName())
            .append("photoUrl", getPhotoUrl())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
